package com.hanggold;

import com.jfinal.config.Constants;
import com.jfinal.config.Handlers;
import com.jfinal.config.Interceptors;
import com.jfinal.config.JFinalConfig;
import com.jfinal.config.Plugins;
import com.jfinal.config.Routes;
import com.jfinal.server.undertow.UndertowServer;
import com.jfinal.template.Engine;

/**
 * @author <a href="mailto:sunmch@163.com">smc</a>
 * @date 2021-06-15 19:11
 * @since 1.0.0
 **/
public class ApplicationConfig extends JFinalConfig {
    
    @Override
    public void configConstant(final Constants me) {
        
    }
    
    @Override
    public void configRoute(final Routes me) {
        me.scan("com.hanggold.application.");
    }
    
    @Override
    public void configEngine(final Engine me) {
        
    }
    
    @Override
    public void configPlugin(final Plugins me) {
        
    }
    
    @Override
    public void configInterceptor(final Interceptors me) {
        
    }
    
    @Override
    public void configHandler(final Handlers me) {
        
    }
    
    public static void main(String[] args) {
        UndertowServer.start(ApplicationConfig.class, 8881, true);
    }
}
